package DrawPic;

import java.util.Scanner;

public class Triangle extends Figure {
		
		public Triangle(int chang){
			super(chang);
		}
		

		
		public static void draw(){
			System.out.println("请输入你要绘画的三角形的高");
			Scanner sca=new Scanner(System.in);			
			int bc=sca.nextInt();
			for(int b=1;b<=bc;b++){
				for(int j=0;j<bc-b;j++)
					System.out.print(" ");
				for(int k=0;k<2*b-1;k++)
					System.out.print("*");
				System.out.println();					
			}	System.out.println("绘制成功！请输入接下来你要执行的命令：");	
		}	
		
		public static void erase(){
			System.out.println();
			System.out.println();
			System.out.println();
			System.out.println();
		}
		
}